;(function($){
   $.doGetDataAjax=function(url,dataType,thatAsync,dataString){
   	var result;
            $.ajax({
                  url: url+dataString,
                  type: 'get',
                  dataType:dataType,
                  async:thatAsync,
                  xhrFields:{
                      withCredentials:true,
                  },
                  crossdomain:true,
                  success: function (data) {
                      result=data;
                    },
                    error:function(){
                      console.log('styleSteam  error')
                    }
        }); 
            return result;
   };
   $.doPostDataAjax=function(url,dataType,thatAsync,dataJson){
   	var result;
            $.ajax({
                  url: url,
                  type: 'post',
                  data: dataJson,
                  dataType:dataType,
                  async:thatAsync,
                   xhrFields:{              //跨域设置
                      withCredentials:true, //跨域设置
                  },
                  crossdomain:true,         //跨域设置

                  success: function (data) {
                      result=data;
                    },
                    error:function(){
                      console.log('styleSteam  error');
                    }
        }); 
            return result;
   };
})(jQuery);